package com.hzw.saas.api.hpc.enums;

import java.util.Objects;

/**
 * <p>
 * 超算连接方式
 * </p>
 *
 * @author sonam
 * @since 2021/1/26 14:57
 */
public enum HpcConnType {

    NORMAL("normal"), VPN("VPN");

    String connType;

    HpcConnType(String connType) {
        this.connType = connType;
    }

    public static HpcConnType instance(String connType) {
        for (HpcConnType hpcConnType : HpcConnType.values()) {
            if (Objects.equals(hpcConnType.connType, connType)) {
                return hpcConnType;
            }
        }
        return null;
    }


}
